package com.haierp.service.purchase;

import java.util.List;

import com.baomidou.framework.service.ISuperService;
import com.haierp.model.purchase.Receipt;
import com.haierp.model.purchase.TaskPurchase;

public interface ITaskPurchaseService extends ISuperService<TaskPurchase>{

	/**
	 * 通过子任务ID获取所有采购流水记录
	 * @param subTaskId
	 * @return
	 */
	List<TaskPurchase> queryTaskPurchaseBySubTask(Long subTaskId);
	
	
	/**
	 * 查询今天未完成的采购流水记录
	 * @param subTaskId
	 * @return
	 */
	List<TaskPurchase> queryTaskPurchaseList(Long buyerId,Integer status);
	
	/**
	 * 新增小票记录，更新流水的状态
	 * @param receipt
	 * @param tps
	 */
	void createReceipt(Receipt receipt,List<TaskPurchase> tps);
}
